ef_spark

Built in constant for a spark effect.

语法:

ef_spark;


返回: N/A


描述

This constant is for use in the functions effect_create_above and effect_create_below, and will create a spark effect as illustrated in the image below:




例如:

if power
   {
   effect_create_above(ef_spark, bbox_left + random(sprite_width), bbox_top + random(sprite_height), choose(0, 1), merge_colour(c_white, c_yellow, random(1));
   }

The above code will create a spark effect over the area of the instance if the variable "power" is true.


上一页: Simple Effects
下一页: ef_star
© Copyright YoYo Games Ltd. 2018 All Rights Reserved